<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!-- head头公共代码 -->
<head th:fragment="head">
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="shortcut icon" type="image/x-icon" th:href="@{/img/tlogo.png}" media="screen">
    <title>项目管理系统</title>
    <link th:href="@{/layui/css/layui.css}" rel="stylesheet"/>
    <link th:href="@{/layui/css/global1.css}" rel="stylesheet"/>
    <link th:href="@{/layui/css/font-face.css}" rel="stylesheet"/>
    <link th:href="@{/css/common.css}" rel="stylesheet"/>
    <link th:href="@{/layui/css/layim.css}" rel="stylesheet"/>
</head>
<body>
<!-- 导航头部公共代码 -->
<div th:fragment="headerhtml" class="fly-header layui-bg-black">
    <div class="layui-container">
        <a class="fly-logo" href="/">
           <!-- <img th:src="@{/img/logo.png}" alt="poj">-->
            <span>工作管理小工具</span>
        </a>
        <ul class="layui-nav fly-nav layui-hide-xs">

        </ul>
        <ul class="layui-nav fly-nav-user">
            <li class="layui-nav-item" th:if="${session.user==null}"><a class="iconfont icon-touxiang layui-hide-xs" href="/page/login/"></a></li>
            <li class="layui-nav-item" th:if="${session.user==null}"><a href="/page/login/">登入</a></li>
            <li class="layui-nav-item" th:if="${session.user==null}"><a href="/page/reg/">注册</a></li>
            <!--<li class="layui-nav-item layui-hide-xs"><a href="/app/qq/"
                                                        onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})"
                                                        title="QQ登入" class="iconfont icon-qq"></a></li>
            <li class="layui-nav-item layui-hide-xs"><a href="/app/weibo/"
                                                        onclick="layer.msg('正在通过微博登入', {icon:16, shade: 0.1, time:0})"
                                                        title="微博登入" class="iconfont icon-weibo"></a></li>-->
            <li class="layui-nav-item" th:if="${session.user!=null}">
                <a class="fly-nav-avatar" href="/user/" id="LAY_header_avatar">
                    <cite class="layui-hide-xs" th:text="${session.user.nickName}"></cite>
                    <img src="//thirdqq.qlogo.cn/g?b=oidb&amp;k=OG9fL4kIvBuraibS8MZlBJA&amp;s=100&amp;t=1557506161">
                    <span class="layui-nav-more"></span>
                </a>
                <dl class="layui-nav-child layui-anim layui-anim-upbit">
                    <dd><a href="/page/user/">用户中心</a></dd>
                    <dd><a href="/user/set/">基本设置</a></dd>
                    <hr>
                    <dd><a href="/user/message/">我的消息</a></dd>
                    <dd><a href="/user/product/">已购产品</a></dd>
                    <dd><a href="/u/52318224">我的主页</a></dd>
                    <hr style="margin: 5px 0;">
                    <dd><a href="/login/logout/" style="text-align: center;">退出</a></dd>
                </dl>
            </li>
            <span class="layui-nav-bar" style="left: 0px; top: 55px; width: 0px; opacity: 0;"></span>
        </ul>
    </div>
</div>
</body>